import 'package:flutter/material.dart';
import 'package:flutter_study/model/news_model.dart';

class NewsTitleWidgetItem extends StatelessWidget {
  final NewsItemModel model;

  const NewsTitleWidgetItem({Key key, @required this.model}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.only(left: 10, top: 5),
      child: Text(
        model.data.text,
        style: TextStyle(
            fontSize: 22,
            fontWeight: FontWeight.bold,
            color: Color(0xff3f3f3f)),
      ),
    );
  }
}
